const messageRouter = {
  path: 'message_service',
  name: 'MessageService',
  hidden: true,
  meta: { title: '短信服务' },
  component: () => import('@/views/operate/index'),
  redirect: '/operation/message_service/message_statistics',
  children: [
    {
      path: 'message_statistics',
      name: 'MessageStatistics',
      hidden: true,
      meta: { title: '短信统计', noCache: true },
      component: () => import('@/views/operate/message/index')
    },
    {
      path: 'group_message',
      name: 'GroupMessage',
      hidden: true,
      meta: { title: '短信群发', noCache: true },
      component: () => import('@/views/operate/index'),
      redirect: '/operation/message_service/message_statistics',
      children: [
        {
          path: 'group_list',
          name: 'GroupList',
          hidden: true,
          meta: { title: '群发列表', noCache: true },
          component: () => import('@/views/operate/message/send/index')
        },
        {
          path: 'add_group',
          name: 'AddGroup',
          hidden: true,
          meta: { title: '新建短信群发', noCache: true },
          component: () => import('@/views/operate/message/send/form')
        },
        {
          path: 'message_detail',
          name: 'MessageDetail',
          hidden: true,
          meta: { title: '短信明细', noCache: true },
          component: () => import('@/views/operate/message/send/detail')
        }
      ]
    },
    {
      path: 'template_manage',
      name: 'TemplateMange',
      hidden: true,
      meta: { title: '模板管理', noCache: true },
      component: () => import('@/views/operate/index'),
      redirect: '/operation/message_service/message_statistics',
      children: [
        {
          path: 'template_list',
          name: 'TemplateList',
          hidden: true,
          meta: { title: '模板列表', noCache: true },
          component: () => import('@/views/operate/message/template')
        },
        {
          path: 'add_template',
          name: 'AddTemplate',
          hidden: true,
          meta: { title: '新建短信模板', noCache: true },
          component: () => import('@/views/operate/message/template/form')
        },
        {
          path: 'edit_template',
          name: 'EditTemplate',
          hidden: true,
          meta: { title: '编辑短信模板', noCache: true },
          component: () => import('@/views/operate/message/template/form')
        }
      ]
    },
    {
      path: 'guide_link',
      name: 'GuideLink',
      hidden: true,
      meta: { title: '引导跳转页', noCache: true },
      component: () => import('@/views/operate/index'),
      redirect: '/operation/message_service/message_statistics',
      children: [
        {
          path: 'guide_list',
          name: 'GuideList',
          hidden: true,
          meta: { title: '引导跳转页', noCache: true },
          component: () => import('@/views/operate/message/guide')
        },
        {
          path: 'add_guide',
          name: 'AddGuide',
          hidden: true,
          meta: { title: '新建引导跳转页', noCache: true },
          component: () => import('@/views/operate/message/guide/form')
        },
        {
          path: 'edit_guide',
          name: 'EditGuide',
          hidden: true,
          meta: { title: '编辑引导跳转页', noCache: true },
          component: () => import('@/views/operate/message/guide/form')
        }
      ]
    }
  ]
}

export default messageRouter
